Alma\Woocommerce\Helpers\PaymentHelper S

Total Complexity 46
Dependencies 25
Dependents 10
Total lines 567
Lines of code 256
Logical lines of code 129
Comment lines 221
Methods 22
Properties 7

Methods 22

Method Rating Maintainability Complexity Lines of code
get_payment_method()
S
56 6 19
build_customer_details()
S
55 4 21
validate_payment_on_customer_return()
S
57 4 17
validate_payment_from_ipn()
S
58 4 16
build_payment_details()
S
50 3 29
get_payment_to_validate()
S
55 3 21
validate_payment()
S
57 2 18
get_payment_payload_from_order()
S
58 2 16
add_product_data()
S
58 1 15
manage_potential_fraud()
S
67 2 7
manage_mismatch()
S
66 2 8
update_order_post_meta_if_deferred_trigger()
S
74 2 5
get_order_items_details()
S
67 2 8
__construct()
S
61 1 12
build_data_for_alma()
S
65 1 9
get_description()
S
79 1 3
build_order_details()
S
69 1 7
handle_ipn_callback()
S
77 1 4
handle_customer_return()
S
76 1 4
manage_payment_errors()
S
70 1 6
create_payments()
S
72 1 5
redirect_to_cart_with_error()
S
71 1 6